package com.sc.nft.dto.profit;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;


@Data
public class BusinessShareProfitDTO {

    @ApiModelProperty("daoId")
    @NotNull(message = "daoId不能为空")
    private Long daoId;

    @ApiModelProperty("企业分润占比")
    @NotNull(message = "企业分润占比不能为空")
    @DecimalMin(value = "0",message = "企业分润占比范围不正确")
    @DecimalMax(value = "1",message = "企业分润占比范围不正确")
    private BigDecimal ratio;

    @ApiModelProperty("分红池占比")
    @NotNull(message = "分润池占比不能为空")
    @DecimalMin(value = "0",message = "分润池占比范围不正确")
    @DecimalMax(value = "1",message = "分润池占比范围不正确")
    private BigDecimal boundsPoolRatio;


    @ApiModelProperty("公司占比")
    @NotNull(message = "公司占比不能为空")
    @DecimalMin(value = "0",message = "公司占比范围不正确")
    @DecimalMax(value = "1",message = "公司占比范围不正确")
    private BigDecimal companyRatio;


    @ApiModelProperty("礼包收入")
    @NotNull(message = "礼包收入不能为空")
    @DecimalMin(value = "0",message = "礼包收入范围不正确")
    @DecimalMax(value = "1",message = "礼包收入范围不正确")
    private BigDecimal giftRatio;



}
